<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	$link=D('link');
        $linkres=$link->field('title,url')->select();
        $this->assign('linkres',$linkres);
   
        $this->display();
    }
}